#include<stdio.h>
#include<stdlib.h>

int main() {
int i, j, k, m;
for (i = 1; i <= 9; i++) {
for (j = 1; j <= 9; j++) {
for (m = 0; m <= 99; m++) {
k = i * 1000 + i * 100 + j * 10 + j;
if(k == m * m) {
printf("k=%d,m=%d\n",k,m);
}
}
}
}
system("pause");
return 0;
}